package com.xgb.springcloudserver.service.impl;

import com.xgb.springcloudserver.domain.UserInfo;
import com.xgb.springcloudserver.service.UserInfoService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @description:
 * @author: chenzuolin
 * @time: 2021/3/20 21:20
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {


    @Override
    public UserInfo findUserInfoById(String id) {
        System.out.println("服务提供者被调用了：findUserInfoById=>"+id);
        return new UserInfo("user","user","user","user","user");
    }

    @Override
    public List<UserInfo> findAllUserInfo() {
        System.out.println("服务提供者被调用了：findAllUserInfo");
        return Arrays.asList(new UserInfo("张三","123456","111","1","1634772033"),
                new UserInfo("里斯","123456","222","2","5555"),
                new UserInfo("王五","123456","333","4","5564654"),
                new UserInfo("赵六","123456","4444","3","45646"));
    }
}
